<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							数据信息 <a class="btn btn-default btn-sm pull-right" role="button"
								href="${contextPath}/sys/sysdict/list" >返回</a>
						</h3>
					</div>
					<tags:message content="${message}" />
					<table class="table table-bordered">
						<tbody>
							<tr>
								<td class="text-right" style="width: 20%"><strong>名称:</strong></td>
								<td>${sysDict.name}</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>类型:</strong></td>
								<td>${sysDict.dictType}</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>描述:</strong></td>
								<td>${sysDict.desc}</td>
							</tr>
							<%-- <tr>
								<td class="text-right" style="width: 20%"><strong>备用1:</strong></td>
								<td>${sysDict.bup1}</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>备用2:</strong></td>
								<td>${sysDict.bup2}</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>备用3:</strong></td>
								<td>${sysDict.bup3}</td>
							</tr>--%>
						</tbody>
					</table>
					<div class="panel-footer"></div>
				</div>

				 
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							数据字典明细列表
							<a class="btn btn-primary btn-sm pull-right" role="button" style="color:white;"
									href="${contextPath}/sys/sysdict/${sysDict.id}/${sysDict.dictType}/refreshCache" >刷新缓存</a>
						</h3>
						
					</div>
					
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>KEY</th>
								<th>显示文本</th>
								<th>排序</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list}" var="sysDictDetail">
								<tr>
									<td>${sysDictDetail.key}</td>
									<td>${sysDictDetail.value}</td>
									<td>${sysDictDetail.sort}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="panel-footer"></div>
				</div>
				
			</div>
		</div>
	</div>
</body>
</html>